﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using System.Web.Mvc;

using MongoDB.Bson.Serialization.Attributes;

namespace BusinessManagementStudio.Models.BusinessObject.Entities
{
    [BsonIgnoreExtraElements]
    public class UserType : MongoEntity
    {
        public String UserTypeName { get; set; }

        public IEnumerable<SelectListItem> UserTypeNameList
        {
            get
            {
                List<SelectListItem> list = new List<SelectListItem> { new SelectListItem() { Text = "User", Value = "User" }, new SelectListItem() { Text = "Administrator", Value = "Administrator" } };
                return list.Select(l => new SelectListItem { Selected = (l.Value == UserTypeName), Text = l.Text, Value = l.Value });
            }
        }
    }
}
